package com.hj.collegetravel.models;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class CUser implements Serializable {
    private Integer uId;

    private String uName;

    private String uEmail;

    private String uPassword;

    private Integer uSex;

    private String uTel;

    private String uPic;

    private String uIntroduction;

    private String uQqid;

    private String uIp;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date uRegtime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date uLogintime;

    private static final long serialVersionUID = 1L;

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName == null ? null : uName.trim();
    }

    public String getuEmail() {
        return uEmail;
    }

    public void setuEmail(String uEmail) {
        this.uEmail = uEmail == null ? null : uEmail.trim();
    }

    public String getuPassword() {
        return uPassword;
    }

    public void setuPassword(String uPassword) {
        this.uPassword = uPassword == null ? null : uPassword.trim();
    }

    public Integer getuSex() {
        return uSex;
    }

    public void setuSex(Integer uSex) {
        this.uSex = uSex;
    }

    public String getuTel() {
        return uTel;
    }

    public void setuTel(String uTel) {
        this.uTel = uTel == null ? null : uTel.trim();
    }

    public String getuPic() {
        return uPic;
    }

    public void setuPic(String uPic) {
        this.uPic = uPic == null ? null : uPic.trim();
    }

    public String getuIntroduction() {
        return uIntroduction;
    }

    public void setuIntroduction(String uIntroduction) {
        this.uIntroduction = uIntroduction == null ? null : uIntroduction.trim();
    }

    public String getuQqid() {
        return uQqid;
    }

    public void setuQqid(String uQqid) {
        this.uQqid = uQqid == null ? null : uQqid.trim();
    }

    public String getuIp() {
        return uIp;
    }

    public void setuIp(String uIp) {
        this.uIp = uIp == null ? null : uIp.trim();
    }

    public Date getuRegtime() {
        return uRegtime;
    }

    public void setuRegtime(Date uRegtime) {
        this.uRegtime = uRegtime;
    }

    public Date getuLogintime() {
        return uLogintime;
    }

    public void setuLogintime(Date uLogintime) {
        this.uLogintime = uLogintime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uId=").append(uId);
        sb.append(", uName=").append(uName);
        sb.append(", uEmail=").append(uEmail);
        sb.append(", uPassword=").append(uPassword);
        sb.append(", uSex=").append(uSex);
        sb.append(", uTel=").append(uTel);
        sb.append(", uPic=").append(uPic);
        sb.append(", uIntroduction=").append(uIntroduction);
        sb.append(", uQqid=").append(uQqid);
        sb.append(", uIp=").append(uIp);
        sb.append(", uRegtime=").append(uRegtime);
        sb.append(", uLogintime=").append(uLogintime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}